package com.zf.yichat.model;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

@Table(name = "print_tree_level_config")
public class PrintTreeLevelConfig implements Serializable {
    @Id
    private Long id;

    /**
     * 树木名称
     */
    private String name;

    /**
     * 头像路径
     */
    private String avatar;

    /**
     * 最小次数
     */
    @Column(name = "min_num")
    private Integer minNum;

    /**
     * 最大次数
     */
    @Column(name = "max_num")
    private Integer maxNum;

    /**
     * 每次浇水可以产生能量块的数量
     */
    @Column(name = "block_num")
    private Integer blockNum;

    @Column(name = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    private static final long serialVersionUID = 1L;

    public PrintTreeLevelConfig(Long id, String name, String avatar, Integer minNum, Integer maxNum, Integer blockNum, Date createTime) {
        this.id = id;
        this.name = name;
        this.avatar = avatar;
        this.minNum = minNum;
        this.maxNum = maxNum;
        this.blockNum = blockNum;
        this.createTime = createTime;
    }

    public PrintTreeLevelConfig() {
        super();
    }

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取树木名称
     *
     * @return name - 树木名称
     */
    public String getName() {
        return name;
    }

    /**
     * 设置树木名称
     *
     * @param name 树木名称
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    /**
     * 获取头像路径
     *
     * @return avatar - 头像路径
     */
    public String getAvatar() {
        return avatar;
    }

    /**
     * 设置头像路径
     *
     * @param avatar 头像路径
     */
    public void setAvatar(String avatar) {
        this.avatar = avatar == null ? null : avatar.trim();
    }

    /**
     * 获取最小次数
     *
     * @return min_num - 最小次数
     */
    public Integer getMinNum() {
        return minNum;
    }

    /**
     * 设置最小次数
     *
     * @param minNum 最小次数
     */
    public void setMinNum(Integer minNum) {
        this.minNum = minNum;
    }

    /**
     * 获取最大次数
     *
     * @return max_num - 最大次数
     */
    public Integer getMaxNum() {
        return maxNum;
    }

    /**
     * 设置最大次数
     *
     * @param maxNum 最大次数
     */
    public void setMaxNum(Integer maxNum) {
        this.maxNum = maxNum;
    }

    /**
     * 获取每次浇水可以产生能量块的数量
     *
     * @return block_num - 每次浇水可以产生能量块的数量
     */
    public Integer getBlockNum() {
        return blockNum;
    }

    /**
     * 设置每次浇水可以产生能量块的数量
     *
     * @param blockNum 每次浇水可以产生能量块的数量
     */
    public void setBlockNum(Integer blockNum) {
        this.blockNum = blockNum;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}